package org.apereo.cas.web.y9.event.message;

import java.io.Serializable;

/**
 * 应用刷新事件
 *
 * @author DINGZHAOJUN
 * @date 2022/12/29
 */
public class Y9MessageCommon implements Serializable {
    private static final long serialVersionUID = -1107265840539410276L;

    public static final String REFRESH_REMOTE_APPLICATION_EVENT = "RefreshRemoteApplicationEvent";

    private Serializable eventObject;
    private String eventType;
    private String eventTarget;

    public Y9MessageCommon() {}

    public Y9MessageCommon(Serializable eventObject, String eventType, String eventTarget) {
        this.eventObject = eventObject;
        this.eventType = eventType;
        this.eventTarget = eventTarget;
    }

    public Serializable getEventObject() {
        return eventObject;
    }

    public String getEventTarget() {
        return eventTarget;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventObject(Serializable eventObject) {
        this.eventObject = eventObject;
    }

    public void setEventTarget(String eventTarget) {
        this.eventTarget = eventTarget;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    @Override
    public String toString() {
        return "RiseCommonEvent [eventObject=" + eventObject + ", eventType=" + eventType + ", eventTarget=" + eventTarget + "]";
    }

}